package com.monboo.album
{
	/**
	 * @author robin for Tudou AlbumPlayer 2010-03-26
	 * @AlbumFacade Facade
	 * @email:rman@live.cn
	 * @blog:www.xncat.com
	 */
	
	import org.puremvc.as3.interfaces.IFacade;
	import org.puremvc.as3.patterns.facade.Facade;
	import com.monboo.album.controller.AlbumStartupCommand;

	public class AlbumFacade extends Facade implements IFacade
	{
		protected static var instance : IFacade; 
		public static const NAME:String = "AlbumFacade";
		public static const STARTUP:String = "startup";
		
		public function AlbumFacade()
		{
			super();
		}
		public static function getInstance( ) : AlbumFacade 
        {
             if ( instance == null ) { 
				instance = new AlbumFacade( ); 
			} 
			return instance as AlbumFacade; 
        }
        override protected function initializeController( ) : void 
        {
            super.initializeController(); 
   			
            registerCommand( STARTUP, AlbumStartupCommand );
        }
        public function startup( app:AlbumLite ):void
		{	
			sendNotification( STARTUP, app );
		}
	}
}